var app=getApp(),
a=app.requirejs("core");
Page({
  data:{
    list:[],
    show:false
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    this.setData({
      id: options.id
    });
    this.getinfo();
  },
  getinfo:function(){
    var that=this,
    id=that.data.id;
    a.get('User/card_record',{ucard_id:id},function(t){
      if(t.code==0){
        that.setData({
          list:t.info,
          show:true
        })
      }else{
        a.alert(t.msg);
      }
    },that.data.show)
  }
})